﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace md.imi.membranes.gui.Dialogs
{
    public partial class FrmRenameConfiguration : Form
    {
        public FrmRenameConfiguration()
        {
            InitializeComponent();
        }

        /// <summary>
        ///     Form load handler
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void FrmRenameConfiguration_Load(object sender, EventArgs e)
        {
            tbNewName.Select();
        }

        /// <summary>
        ///     Set informative field (old configuration)
        /// </summary>
        /// <param name="label"></param>
        public void SetOldConfigurationName(string label)
        {
            tbOldName.Text = label;
        }

        /// <summary>
        ///     Get's the new name of the configuration
        /// </summary>
        /// <returns></returns>
        public string GetNewConfigurationName()
        {
            return tbNewName.Text;
        }
    }
}
